<?php

namespace App\Models;

use Illuminate\Notifications\Notifiable;    

class User extends Base
{
    use Notifiable;

    protected $connection = 'mysql'; // 指定连接
    public $table='user';
    
    public $timestamps = false;

    /**
     * The attributes that are mass assignable.
     *
     * @var array<int, string>
     */
    protected $fillable = [
    ];

    /**
     * The attributes that should be hidden for serialization.
     *
     * @var array<int, string>
     */
    protected $hidden = [
        
    ];

    /**
     * The attributes that should be cast.
     *
     * @var array<string, string>
     */
    protected $casts = [
        
    ];


    public static function getone($where,$fields = '*')
    {
        $first=self::where($where)->first($fields);
        
        return $first;
    }




}
